home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / Dreamweaver 3 / Configuration / Objects / Head / Meta.js < prev    next >
Encoding:
Text File  |  1999-12-01  |  677 b   |  26 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. //---------------   GLOBAL VARIABLES   ---------------
  4.  
  5. var helpDoc = MM.HELP_objMeta;
  6.  
  7. //---------------     API FUNCTIONS    ---------------
  8.  
  9. function objectTag() {
  10.   var Form = document.theForm;
  11.   var retVal='',selInd;
  12.   var selInd=Form.metaAttribute.selectedIndex;
  13.   var metaAttribute = (selInd==0)?'name':'http-equiv'
  14.   retVal='<meta ' + metaAttribute + '="' + 
  15.     Form.metaValue.value + '" Content="' + Form.Content.value +
  16.     '">';    
  17.  
  18.   return retVal;
  19. }
  20.  
  21. //---------------    LOCAL FUNCTIONS   ---------------
  22.  
  23. function initializeUI(){
  24.   document.theForm.metaValue.focus(); //set focus in Value text field
  25. }
  26.